package com.kaifamiao.demo.d0824;

import java.time.LocalDate;
import java.time.Month;
import java.time.ZoneId;
import java.util.Date;

public class Demo05 {

    public static void main(String[] args) {
        System.out.println(new Date(Long.MAX_VALUE));
//        LocalDate

        LocalDate now = LocalDate.of(2022, 8, 24);
        System.out.println(now);
        now = LocalDate.now();
        System.out.println(now);

        LocalDate.of(2022, Month.AUGUST, 24);

        now = LocalDate.ofYearDay(2022, 236);
        System.out.println(now);

        now = LocalDate.ofEpochDay(52 * 365 + 18);
        System.out.println(now);

        now = LocalDate.parse("2022-08-24");
        System.out.println(now);

        System.out.println(now.atStartOfDay());
    }
}
